package pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class Food {

  private Integer foodId;
  private String foodName;
  private Double foodPrice;
  private String foodTypeCode;
  private String foodImg;
  private Integer foodIsDeleted;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp foodCreateTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp foodUpdateTime;

  private Integer page;
  private Integer limit;
  private FoodType foodType;

  public Food() {
  }

  public Integer getPage() {
    return page;
  }

  public void setPage(Integer page) {
    this.page = page;
  }

  public Integer getLimit() {
    return limit;
  }

  public void setLimit(Integer limit) {
    this.limit = limit;
  }

  public FoodType getFoodType() {
    return foodType;
  }

  public void setFoodType(FoodType foodType) {
    this.foodType = foodType;
  }

  public Integer getFoodId() {
    return foodId;
  }

  public void setFoodId(Integer foodId) {
    this.foodId = foodId;
  }


  public String getFoodName() {
    return foodName;
  }

  public void setFoodName(String foodName) {
    this.foodName = foodName;
  }


  public Double getFoodPrice() {
    return foodPrice;
  }

  public void setFoodPrice(Double foodPrice) {
    this.foodPrice = foodPrice;
  }


  public String getFoodTypeCode() {
    return foodTypeCode;
  }

  public void setFoodTypeCode(String foodTypeCode) {
    this.foodTypeCode = foodTypeCode;
  }


  public String getFoodImg() {
    return foodImg;
  }

  public void setFoodImg(String foodImg) {
    this.foodImg = foodImg;
  }


  public Integer getFoodIsDeleted() {
    return foodIsDeleted;
  }

  public void setFoodIsDeleted(Integer foodIsDeleted) {
    this.foodIsDeleted = foodIsDeleted;
  }


  public java.sql.Timestamp getFoodCreateTime() {
    return foodCreateTime;
  }

  public void setFoodCreateTime(java.sql.Timestamp foodCreateTime) {
    this.foodCreateTime = foodCreateTime;
  }


  public java.sql.Timestamp getFoodUpdateTime() {
    return foodUpdateTime;
  }

  public void setFoodUpdateTime(java.sql.Timestamp foodUpdateTime) {
    this.foodUpdateTime = foodUpdateTime;
  }

  @Override
  public String toString() {
    return "Food{" +
            "foodId=" + foodId +
            ", foodName='" + foodName + '\'' +
            ", foodPrice=" + foodPrice +
            ", foodTypeCode='" + foodTypeCode + '\'' +
            ", foodImg='" + foodImg + '\'' +
            ", foodIsDeleted=" + foodIsDeleted +
            ", foodCreateTime=" + foodCreateTime +
            ", foodUpdateTime=" + foodUpdateTime +
            ", page=" + page +
            ", limit=" + limit +
            ", foodType=" + foodType +
            '}';
  }
}
